<script setup name="searchitem">
import { useUserStore } from "@/store"
import { storeToRefs } from "pinia"

const userStore = useUserStore()
const { showSearch } = storeToRefs(userStore)
defineProps({
  label: String
})
</script>

<template>
  <el-col :sm="showSearch ? 9 : 18" :span="showSearch ? 12 : 14">
    <el-form-item :label="label">
      <slot />
    </el-form-item>
  </el-col>
</template>
